<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>统一进件</title>
    <style>
        red {
            color: red;
        }
    </style>
    <script src="../js/jquery-1.8.3.min.js"></script>
</head>
<body>

商户号（mch_uid）：
<red>*</red>
<input type="text" id="mch_uid" value="4945892105419"><br>
商户全名称（merch_full_name）：
<red>*</red>
<input type="text" id="merch_full_name" value="哇哇哇大西西瓜"><br>
商户简称（merch_short_name）：
<red>*</red>
<input type="text" id="merch_short_name" value="娃娃啊哇哇"><br>

<tr height="40">
    <td>商户类型编码（merch_type）：</td>
    <td>
        <select name="cboGatewayBankCardType" id="merch_type">
            <option value="0">线下商户</option>
            <option value="1">线上商户</option>
            <option value="-1">未知</option>
        </select></td>
</tr><br>




省份ID（province_id）：
<red>*</red>
<input type="text" id="province_id" value="11"><br>


城市ID（city_id）：
<red>*</red>
<input type="text" id="city_id" value="110000"><br>


门店所在地地区代码（local_code）：
<red>*</red>
<input type="text" id="local_code" value="110106"><br>


<tr height="40">
    <td>商户行政类型（offical_type）：</td>
    <td>
        <select name="cboGatewayBankCardType" id="offical_type">
            <option value="4">企业</option>
            <option value="5">个体工商户</option>
            <option value="6">个人</option>
        </select></td>
</tr><br>

<tr height="40">
    <td>联系人类型（contact_type）：</td>
    <td>
        <select name="cboGatewayBankCardType" id="contact_type">
            <option value="LEGAL_PERSON">法人</option>
            <option value="CONTROLLER">实际控制人</option>
            <option value="AGENT">代理人</option>
            <option value="OTHER">其他</option>
        </select></td>
</tr><br>


联系人姓名（contact_name）：
<red>*</red>
<input type="text" id="contact_name" value="哒哒哒哒"><br>


联系人手机号（contact_mobile）：
<red>*</red>
<input type="text" id="contact_mobile" value="16666669999"><br>


联系人身份证号（contact_idcard）：
<red>*</red>
<input type="text" id="contact_idcard" value="4945892105419"><br>


联系人身份证有效期（contact_idcard_valid）：
<red>*</red>
<input type="text" id="contact_idcard_valid" value="2015-06-08_2025-06-08_10"><br>


<tr height="40">
    <td>营业执照类型（area_type）：</td>

    <td>
        <select name="cboGatewayBankCardType" id="area_type">
            <option value="NATIONAL_LEGAL">营业执照</option>
            <option value="NATIONAL_LEGAL_MERGE">营业执照()多证合一</option>
            <option value="INST_RGST_CTF">事业单位法人证书</option>
        </select></td>
</tr><br>


营业执照号（business_no）：
<red>*</red>
<input type="text" id="business_no" value="4945892105419"><br>

营业执照注册名称（business_name）：
<red>*</red>
<input type="text" id="business_name" value="4945892105419"><br>


营业执照有效期（business_valid）：
<red>*</red>
<input type="text" id="business_valid" value="2015-06-08_2025-06-08_10"><br>

营业执照上的地址（licence_address）：
<red>*</red>
<input type="text" id="licence_address" value="201"><br>


商户经营地址（address）：
<red>*</red>
<input type="text" id="address" value="北京海淀"><br>


法人姓名（legal_user）：
<red>*</red>
<input type="text" id="legal_user" value="张三"><br>


法人手机号（legal_mobile）：
<red>*</red>
<input type="text" id="legal_mobile" value="15505050500"><br>


法人身份证号（legal_idcard）：
<red>*</red>
<input type="text" id="legal_idcard" value="410727199802214857"><br>


法人身份证有效期限（legal_idcard_valid）：
<red>*</red>
<input type="text" id="legal_idcard_valid" value="2015-06-08_2025-06-08_10"><br>



经营范围（business_scope）：
<red>*</red>
<input type="text" id="business_scope" value="报刊亭"><br>


所属行业编码,详情看下方示例编码（industry_id）：
<red>*</red>
<input type="text" id="industry_id" value="15"><br>

客服电话（serv_phone）：
<red>*</red>
<input type="text" id="serv_phone" value="15505005050"><br>

邮箱（serv_email）：
<red>*</red>
<input type="text" id="serv_email" value="15446@139.com"><br>



<tr height="40">
    <td>结算类型（settle_type）：</td>
    <td>
        <select name="cboGatewayBankCardType" id="settle_type">
            <option value="T">T+1结算</option>
            <option value="D">D+1结算</option>
        </select></td>
</tr><br>



<tr height="40">
    <td>银行开户类型（acct_type）：</td>
    <td>
        <select name="cboGatewayBankCardType" id="acct_type">
            <option value="1">对公</option>
            <option value="2">对私</option>
        </select></td>
</tr><br>


银行卡号（bank_card_no）：
<red>*</red>
<input type="text" id="bank_card_no" value="789789789798"><br>

银行账户名称（bank_account）：
<red>*</red>
<input type="text" id="bank_account" value="建设银行"><br>

开户行名称（open_bank）：
<red>*</red>
<input type="text" id="open_bank" value="建设银行"><br>



银行总行联行号（bank_code）：
<red>*</red>
<input type="text" id="bank_code" value="105100000017"><br>

开户支行名称（open_branch_bank）：
<red>*</red>
<input type="text" id="open_branch_bank" value="中国建设银行北京中关村支行"><br>


银行省份ID（bank_province_id）：
<red>*</red>
<input type="text" id="bank_province_id" value="11"><br>

银行城市ID（bank_city_id）：
<red>*</red>
<input type="text" id="bank_city_id" value="110000"><br>





银行预留手机号（bank_mobile）：
<red>*</red>
<input type="text" id="bank_mobile" value="16666666666"><br>


微信费率,优质商户固定为0.38,非优质商户0.25~0.6,百分比（weixin_fee_rate）：
<red>*</red>
<input type="text" id="weixin_fee_rate" value="0.38"><br>

支付宝费率,优质商户固定为0.38,非优质商户0.25~0.6,百分比（alipay_fee_rate）：
<red>*</red>
<input type="text" id="alipay_fee_rate" value="0.38"><br>


<tr height="40">
    <td>是否开通批量付款功能（trasifer_flag）：</td>
    <td>
        <select name="cboGatewayBankCardType" id="trasifer_flag">
            <option value="0">否</option>
            <option value="1">是</option>
        </select></td>
</tr><br>



微信公众号APPID（wx_app_id）：
<input type="text" id="wx_app_id" value=""><br>

微信小程序APPID（wxa_appid）：
<input type="text" id="wxa_appid" value=""><br>

微信授权目录（wx_auth_path）：
<input type="text" id="wx_auth_path" value=""><br>

经营类目，提交上游进件必填（mcc）：
<input type="text" id="mcc" value="15"><br>



<tr height="40">
    <td>	受益人，控股股东或实际控制人：至少一个最三个，下面是控股股东或实际控制人的json组（share_holder）:</td>
    <td>
        <textarea name="txtMetaOption" rows="10" cols="60" id="share_holder">[{"shareholder_name":"张三","shareholder_cert_type":11,"shareholder_id_card":"411523199906010021","shareholder_id_card_valid":"2015-06-08/2025-06-08/10","shareholder_address":"北京市海淀区","shareholder_nation":"1","shareholder_birthday":"1999-06-17","shareholder_rate":30}]</textarea>
    </td>
</tr><br>



进件审核通过通知地址（notify_url）：
<input type="text" id="notify_url" value="https://www.baidu.com/"><br>

收银台照片,图片的全路径（material_upload_7file）：
<red>*</red>
<input type="text" id="material_upload_7file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

门头照,图片的全路径（registry_upload_file）：
<red>*</red>
<input type="text" id="registry_upload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

对公账户许可,图片的全路径（rupload_file）：
<red>*</red>
<input type="text" id="rupload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

法人身份证国徽(反面照),图片的全路径（legal_upload_file）：
<red>*</red>
<input type="text" id="legal_upload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

营业执照,图片的全路径（bupload_file）：
<red>*</red>
<input type="text" id="bupload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>


内部经营照片,图片的全路径（photo_upload_file）：
<red>*</red>
<input type="text" id="photo_upload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

结算银行卡正面照,图片的全路径（material_upload_2file）：
<red>*</red>
<input type="text" id="material_upload_2file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

店主身份证国徽面(反面),图片的全路径（material_upload_3file）：
<red>*</red>
<input type="text" id="material_upload_3file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

店主身份证人像面(正面),图片的全路径（material_upload_4file）：
<red>*</red>
<input type="text" id="material_upload_4file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

入账人手持身份证正面,图片的全路径（material_upload_5file）：
<red>*</red>
<input type="text" id="material_upload_5file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>


法人身份证人像面(正面),图片的全路径（material_upload_file）：
<red>*</red>
<input type="text" id="material_upload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>


入账授权书,图片的全路径（material_upload_1file）：
<red>*</red>
<input type="text" id="material_upload_1file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

协议照,开通付款功能必填，图片的全路径（protocol_upload_file）：
<input type="text" id="protocol_upload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>

申明协议函,开通付款功能必填，图片的全路径（agreement_upload_file）：
<input type="text" id="agreement_upload_file" value="https://alifei05.cfp.cn/creative/vcg/800/new/VCG211177178938.jpg"><br>
















<input type="button" value="提交" onclick="sendRequest()"><br><br>

响应数据：<br>
<textarea id="response" cols="150" rows="30"></textarea>
</body>


<script src="../js/common.js"></script>
<script>

    function sendRequest() {
        // 创建一个新的XMLHttpRequest对象
        var xhr = new XMLHttpRequest();

        // 设置请求方法和URL
        xhr.open("POST", "/v1/MerchProviderSubmit", true);

        // 设置请求头，告诉服务器发送的是JSON数据
        xhr.setRequestHeader("Content-Type", "application/json");

        // 监听请求状态改变
        xhr.onreadystatechange = function () {
            // 如果请求成功完成
            if (xhr.readyState === 4 && xhr.status === 200) {
                // 将响应输出到页面上
                document.getElementById("response").value = xhr.responseText;
            }
        };

        $("#response").val("");
        var mch_uid = $("#mch_uid").val();
        var merch_full_name = $("#merch_full_name").val();
        var merch_short_name = $("#merch_short_name").val();
        var merch_type = $("#merch_type").val();
        var province_id = $("#province_id").val();
        var city_id = $("#city_id").val();
        var local_code = $("#local_code").val();
        var offical_type = $("#offical_type").val();
        var contact_type = $("#contact_type").val();
        var contact_name = $("#contact_name").val();
        var contact_mobile = $("#contact_mobile").val();
        var contact_idcard = $("#contact_idcard").val();
        var contact_idcard_valid = $("#contact_idcard_valid").val();
        var area_type = $("#area_type").val();
        var business_no = $("#business_no").val();
        var business_name = $("#business_name").val();
        var business_valid = $("#business_valid").val();
        var licence_address = $("#licence_address").val();
        var address = $("#address").val();
        var legal_user = $("#legal_user").val();
        var legal_mobile = $("#legal_mobile").val();
        var legal_idcard = $("#legal_idcard").val();
        var legal_idcard_valid = $("#legal_idcard_valid").val();
        var business_scope = $("#business_scope").val();
        var industry_id = $("#industry_id").val();
        var serv_phone = $("#serv_phone").val();
        var serv_email = $("#serv_email").val();
        var settle_type = $("#settle_type").val();
        var acct_type = $("#acct_type").val();
        var bank_card_no = $("#bank_card_no").val();
        var bank_account = $("#bank_account").val();
        var open_bank = $("#open_bank").val();
        var bank_code = $("#bank_code").val();
        var open_branch_bank = $("#open_branch_bank").val();
        var bank_province_id = $("#bank_province_id").val();
        var bank_city_id = $("#bank_city_id").val();
        var bank_mobile = $("#bank_mobile").val();
        var weixin_fee_rate = $("#weixin_fee_rate").val();
        var alipay_fee_rate = $("#alipay_fee_rate").val();
        var trasifer_flag = $("#trasifer_flag").val();
        var wx_app_id = $("#wx_app_id").val();
        var wxa_appid = $("#wxa_appid").val();
        var wx_auth_path = $("#wx_auth_path").val();
        var mcc = $("#mcc").val();
        var share_holder = $("#share_holder").val();
        var notify_url = $("#notify_url").val();
        var material_upload_7file = $("#material_upload_7file").val();
        var registry_upload_file = $("#registry_upload_file").val();
        var rupload_file = $("#rupload_file").val();
        var legal_upload_file = $("#legal_upload_file").val();
        var bupload_file = $("#bupload_file").val();
        var photo_upload_file = $("#photo_upload_file").val();
        var material_upload_2file = $("#material_upload_2file").val();
        var material_upload_3file = $("#material_upload_3file").val();
        var material_upload_4file = $("#material_upload_4file").val();
        var material_upload_5file = $("#material_upload_5file").val();
        var material_upload_file = $("#material_upload_file").val();
        var material_upload_1file = $("#material_upload_1file").val();
        var protocol_upload_file = $("#protocol_upload_file").val();
        var agreement_upload_file = $("#agreement_upload_file").val();

        // 创建要发送的数据对象，并转换为JSON格式
        var data = {
            mch_uid: mch_uid,
            merch_full_name: merch_full_name,
            merch_short_name: merch_short_name,
            merch_type: merch_type,
            province_id: province_id,
            city_id: city_id,
            local_code: local_code,
            offical_type: offical_type,
            contact_type: contact_type,
            contact_name: contact_name,
            contact_mobile: contact_mobile,
            contact_idcard: contact_idcard,
            contact_idcard_valid: contact_idcard_valid,
            area_type: area_type,
            business_no: business_no,
            business_name: business_name,
            business_valid: business_valid,
            licence_address: licence_address,
            address: address,
            legal_user: legal_user,
            legal_mobile: legal_mobile,
            legal_idcard: legal_idcard,
            legal_idcard_valid: legal_idcard_valid,
            business_scope: business_scope,
            industry_id: industry_id,
            serv_phone: serv_phone,
            serv_email: serv_email,
            settle_type: settle_type,
            acct_type: acct_type,
            bank_card_no: bank_card_no,
            bank_account: bank_account,
            open_bank: open_bank,
            bank_code: bank_code,
            open_branch_bank: open_branch_bank,
            bank_province_id: bank_province_id,
            bank_city_id: bank_city_id,
            bank_mobile: bank_mobile,
            weixin_fee_rate: weixin_fee_rate,
            alipay_fee_rate: alipay_fee_rate,
            trasifer_flag: trasifer_flag,
            wx_app_id: wx_app_id,
            wxa_appid: wxa_appid,
            wx_auth_path: wx_auth_path,
            mcc: mcc,
            share_holder: share_holder,
            notify_url: notify_url,
            material_upload_7file: material_upload_7file,
            registry_upload_file: registry_upload_file,
            rupload_file: rupload_file,
            legal_upload_file: legal_upload_file,
            bupload_file: bupload_file,
            photo_upload_file: photo_upload_file,
            material_upload_2file: material_upload_2file,
            material_upload_3file: material_upload_3file,
            material_upload_4file: material_upload_4file,
            material_upload_5file: material_upload_5file,
            material_upload_file: material_upload_file,
            material_upload_1file: material_upload_1file,
            protocol_upload_file: protocol_upload_file,
            agreement_upload_file: agreement_upload_file,
        };
        var jsonData = JSON.stringify(data);



        // 发送请求
        xhr.send(jsonData);
    }
</script>
</html>